package cc.linker.steplink.crm.service;

import cc.linker.steplink.crm.commons.domain.WxUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface IPersonalCenterService {
    Map<String, Object> get(String customerId,String bindPhone,Integer payMode) throws Exception;

    List<Map<String, Object>> getScoreRule(String orgId) throws Exception;

    List<Map<String, Object>> getGrowTaskList(String type,String orgId) throws Exception;

    List<Map<String, Object>> listScore(Map<String, String> map) throws Exception;

    Map<String, Object> getCustomerByOpenIdAndToken(String openId, String token) throws Exception;

    Map<String, Object> getCustomerByGlobalOpenidAndToken(String globalOpenId, String token) throws Exception;

    Integer getPayMode(String orgId);

    Map<String, Object> getBindInfo(String customerId);

    void bindPhone(Map<String, Object> params, String key, WxUser wxUser) throws Exception;

    Map<String, Object> getCustomerByCid(String customerId);

    void openAccount(Map<String, Object> map);

    void updateSubscribeByCustomerId(String subscribe, String customerId);

    boolean isAppVip(String customerId);

    List<Map<String, Object>> levelRight(String levelId);

    Map<String, Object> getLevelRightDetail(int rightId);

    Map<String, Object> getRule(Map<String,Object> param);

    Map<String, Object> getScoreLog(Map<String,Object> param);

    void updateUserInfo(Map<String, Object> params, Integer type,String orgId,String globalopenId);

}
